Ext.namespace("Maint.Show64DES");

Maint.Show64DES.showInfo = function (){
	/* customer des */
	this.txtDealWithId = new Ext.form.TextField({fieldLabel: '处理员工号',readOnly: true,width: 160 });
	this.txtDealWithTime = new Ext.form.DateField({fieldLabel: '处理时间',width: 160,format: 'Y-m-d',disabledDays: [0-6]});
	this.txtDealWith = new Ext.form.TextArea({fieldLabel: '说明处理',readOnly: true,width: 460,height: 40 });
	this.txtAdvice = new Ext.form.TextArea({fieldLabel: '客户建议',readOnly: true,width: 460,height: 40 });
	this.txtDealWithResult = new Ext.form.TextArea({fieldLabel: '处理结果',readOnly: true,width: 460,height: 40 });
	this.txtDealWithMember = new Ext.form.TextField({fieldLabel: '处理人',readOnly: true,width: 160 });
	
    this.colseButton = new Ext.Button({
		text:"关闭",
		handler: function(){
			this.hide();
		},
		scope:this
	});

	this.customerDesPanel = new Ext.form.FormPanel({
		title:'派单说明',
		autoHeight:true,
		autoWidth :true,
		labelWidth: 130,
		labelAlign:'right',
		region:'north',
		layout:'table',
		split:true,
		collapsible: true,
		frame:true,
		layoutConfig:{columns:2},
		style:{algin:'center'},
		items:[
				{layout: 'form',items: [this.txtDealWithId ]}, {layout: 'form',items: [this.txtDealWithTime ]},
				{colspan: 2,layout: 'form',items: [this.txtDealWith ]},
				{colspan: 2,layout: 'form',items: [this.txtAdvice ]},
				{colspan: 2,layout: 'form',items: [this.txtDealWithResult ]},
				{layout: 'form',items: [this.txtDealWithMember ]}
		]
	});

	Maint.Show64DES.showInfo.superclass.constructor.call(this,{
		width:650,
		modal:true,
		autoScroll:false,
		closeAction:'hide',
		buttonAlign:'right',
		buttons:[this.colseButton],
		items:[this.customerDesPanel],
		listeners:{
		}
	});
	
};

Ext.extend(Maint.Show64DES.showInfo, Ext.Window, {
	initDes: function(data){
		this.txtDealWithId.setValue(data.DEAL_WITH_ID);
		this.txtDealWithTime.setValue(data.DEAL_WITH_TIME);
		this.txtDealWith.setValue(data.DEAL_WITH);
		this.txtAdvice.setValue(data.ADVICE);
		this.txtDealWithResult.setValue(data.DEAL_WITH_MEMBER);
		this.txtDealWithMember.setValue(data.DEAL_WITH_RESULT);
	}
});